package com.javaAPI.demo1;

import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        //整数
        Scanner intSca = new Scanner(System.in);
        int num = intSca.nextInt();
        System.out.println("输入的数字为:" + num);

        //字符串
        Scanner strSca = new Scanner(System.in);
        String str = strSca.nextLine();
        System.out.println(str);

    }
}
